from rest_framework.pagination import LimitOffsetPagination, PageNumberPagination


class MyPagination(LimitOffsetPagination):
    # 每页的条数
    default_limit = 3
    # 最大条数
    max_limit = 100

# class ArticlePagination(PageNumberPagination):
#     # 默认的页面数据条数
#     page_size = 4
#     # 如果想要改变大小需要给那个参数传值
#     page_size_query_param = 'size'
#     max_page_size = 100
